

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>兔丝街</title>
<link type="text/css" rel="stylesheet" href="../css/shopping_street=20110716.css" />
<script language="javascript" src="../js/common.js"></script>
</head>
<?PHP 
include("../config/connect.php");
require_once("../public/common.php");
require_once("../public/biaoqing.php");

$order = CheckUrlParamNoDie("order");
$id = CheckUrlParamNoDie("id");
$type = CheckUrlParamNoDie("t");
$user = CheckUrlParamNoDie("user");
$jtss = CheckUrlParamNoDie("jtss");


if(isset($_SERVER['HTTP_REFERER']) || $jtss != "")
{
	echo $_SERVER['HTTP_REFERER'];
	header("location:http://www.tusijie.com/item/?id=$id");
}

$g_tag = "";
$g_userid="";
if ($type == "kk")
{
	$sql = "select * from cache_items where id='$id' limit 1";
	$result = mysql_query( $sql );
	$row = mysql_fetch_assoc( $result );
}
else
{
	$sql = "select * from goods_items where id='$id' limit 1";
	$result = mysql_query( $sql );
	$row = mysql_fetch_assoc( $result );
	$g_tag=trim($row["tag"]);
	$g_userid=$row["user_id"];
}
?>

<body class="BabyStreet">
<div id="wrapper">
    <div id="main">
    	<div class="grid_12">
        	<!--产品详情-->
        	<div class="grid_9 alpha">
				<div class="singleGoods mt10" style="border-right:1px solid #dedede; background:#fff; display: block;">
					<div class="code_pic">
						<a target="_blank" href="<?PHP echo $row["url"]; ?>"><img src="<?PHP echo $row["pic_url"]."_310x310.jpg"; ?>" title="<?PHP echo $row["item_title"]; ?>"></a>
					</div>
					<div class="goodsdetail">
						<div class="gs_h">
							<h4 class="f16"><a class="goods_title" target="_blank" href="<?PHP echo $row["url"]; ?>"><?PHP echo $row["item_title"]; ?></a></h4>
							<p class="price qz-price">售价<em><?PHP echo $row["fee"]; ?></em><span <?php if(round(0.6*$row["commission"], 2) == "") echo 'style="display:none"'; ?> ><span class="coin">兔子省</span><span class="fan"><?PHP echo round(0.6*$row["commission"], 2); ?></span>元</span></p>
                            <p class="looklink"><a href="<?PHP echo $row["url"]; ?>" target="_blank">查看购买链接</a><span>来源：淘宝网</span></p>
                            <p <?php if ($type == "kk") echo "style='display:none;'"; ?> class="p12"><a class="notlikeit cursor" onclick="onfavorite(<?PHP echo $id; ?>)"><b class="f14 red nums"><span id="favorite"><?PHP echo $row["favorite"]; ?></span></b>喜欢</a></p>
                            <p class="price Recommend" <?php if($row["r_desc"] == "") echo 'style="display:none"'; ?>>推荐说：<span style="color:#666; font-size:12px;"><?PHP echo ReplaceBiaoQing($row["r_desc"]); ?></span></p>
                            
                           <--?PHP echo $_SERVER['HTTP_REFERER']; ?-->
                            <div>
                            </div>
						</div>
					</div>
                    
                
                </div>
            </div> 
        </div>
    </div>
</div>


</body>
</html>